import request from '@/utils/request'

export function selectAllMedicine(data) {
    return request({
        url: '/medicine/all/',
        method: 'post',
        data: data
    })
}

export function addMedicine(data) {
    return request({
        url: '/medicine/add',
        method: 'post',
        data: data
    })
}

export function updateMedicine(data) {
    return request({
        url: '/medicine/update',
        method: 'post',
        data: data
    })
}

export function deleteMedicine(data) {
    return request({
        url: '/medicine/delete',
        method: 'post',
        data: data
    })
}